home *** CD-ROM | disk | FTP | other *** search
- ; MP3-2-HTML v2.x Installer Script (Both Versions)
- ; (C) 2000 Gareth Griffiths <gazchap@btinternet.com>
- ; Only for distribution in the MP3-2-HTML archive.
-
- ;------ Define Procedures ------;
- (procedure P_CLI-install
- (complete 25)
- (set @default-dest
- (askdir
- (prompt "Where do you want to install MP3-2-HTML?\n\nA drawer named 'MP3-2-HTML' will be created.")
- (help @askdir-help)
- (default "Workbench:Utilities")
- )
- )
- (set #default-dest
- (tackon @default-dest "MP3-2-HTML/")
- )
- (makedir #default-dest
- (infos)
- )
- (complete 50)
- (working "Installing executable...")
- (copyfiles
- (prompt "Installing executable...")
- (help @copyfiles-help)
- (source "bin/2.4cli")
- (dest #default-dest)
- (newname "MP3-2-HTML")
- (infos)
- )
- (complete 75)
- (working "Installing documentation...")
- (copyfiles
- (prompt "Installing documentation...")
- (help @copyfiles-help)
- (source "docs/2.4cli.guide")
- (dest #default-dest)
- (newname "MP3-2-HTML.guide")
- (infos)
- )
- (complete 100)
- )
-
- (procedure P_MUI-install
- (complete 25)
- (set @default-dest
- (askdir
- (prompt "Where do you want to install MP3-2-HTML?\n\nA drawer named 'MP3-2-HTML' will be created.")
- (help @askdir-help)
- (default "Workbench:Utilities")
- )
- )
- (set #default-dest
- (tackon @default-dest "MP3-2-HTML/")
- )
- (makedir #default-dest
- (infos)
- )
- (complete 50)
- (working "Installing executable...")
- (copyfiles
- (prompt "Installing executable...")
- (help @copyfiles-help)
- (source "bin/2.3mui")
- (dest #default-dest)
- (newname "MP3-2-HTML")
- (infos)
- )
- (complete 75)
- (working "Installing documentation...")
- (copyfiles
- (prompt "Installing documentation...")
- (help @copyfiles-help)
- (source "docs/2.3mui.guide")
- (dest #default-dest)
- (newname "MP3-2-HTML.guide")
- (infos)
- )
- (complete 100)
- )
-
- (procedure P_BOTH-install
- (complete 15)
- (set @default-dest
- (askdir
- (prompt "Where do you want to install MP3-2-HTML?\n\nA drawer named 'MP3-2-HTML' will be created.")
- (help @askdir-help)
- (default "Workbench:Utilities")
- )
- )
- (set #default-dest
- (tackon @default-dest "MP3-2-HTML/")
- )
- (makedir #default-dest
- (infos)
- )
- (complete 30)
- (working "Installing executables...")
- (copyfiles
- (prompt "Installing CLI executable...")
- (help @copyfiles-help)
- (source "bin/2.4cli")
- (dest #default-dest)
- (newname "MP3-2-HTML_CLI")
- (infos)
- )
- (complete 45)
- (copyfiles
- (prompt "Installing MUI executable...")
- (help @copyfiles-help)
- (source "bin/2.3mui")
- (dest #default-dest)
- (newname "MP3-2-HTML_MUI")
- (infos)
- )
- (complete 60)
- (working "Installing documentation...")
- (copyfiles
- (prompt "Installing CLI documentation...")
- (help @copyfiles-help)
- (source "docs/2.4cli.guide")
- (dest #default-dest)
- (newname "MP3-2-HTML_CLI.guide")
- (infos)
- )
- (complete 75)
- (copyfiles
- (prompt "Installing MUI documentation...")
- (help @copyfiles-help)
- (source "docs/2.3mui.guide")
- (dest #default-dest)
- (newname "MP3-2-HTML_MUI.guide")
- (infos)
- )
- (complete 100)
- )
-
- ;------ Main installation ------;
-
- (message "Welcome to the MP3-2-HTML installation script.\n\n"
- "This script installs MP3-2-HTML v2.x to your system. You can "
- "choose to install the CLI or MUI version, or both.\n\n"
- "MP3-2-HTML is ©2000 Gareth 'GazChap' Griffiths."
- )
-
- (set #vertoinstall
- (askchoice
- (prompt "Which version of MP3-2-HTML do you want to install?")
- (help "You can choose to install the CLI or MUI version of "
- "MP3-2-HTML here. Or you can install both.")
- (choices "2.4 CLI" "2.3 MUI" "Both")
- (default 2)
- )
- )
-
- (if (= #vertoinstall 0)
- (P_CLI-install)
- )
-
- (if (= #vertoinstall 1)
- (P_MUI-install)
- )
-
- (if (= #vertoinstall 2)
- (P_BOTH-install)
- )
-
- (exit)
-